package com.s666.demo.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.s666.demo.dao.entity.Tag;
import com.s666.demo.dao.mapper.TagMapper;
import com.s666.demo.service.TagService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xhh
 * @since 2018-11-26
 */
@Service
public class TagServiceImpl extends ServiceImpl<TagMapper, Tag> implements TagService {
    @Resource
    TagMapper tagMapper;

    @Override
    public Integer count(){
        //Tag tag = tagMapper.selectById(1);

        return tagMapper.selectCount(new EntityWrapper<Tag>());
    }

}
